HTML Format preferences

Use the following HTML Format preferences to control HTML formatting such as indentation, line length, and the case of tag and attribute names as you create documents. For information on additional HTML formatting controls, see Editing the HTML source formatting profile. Note that the following options (except for Override Case Of) affect only new documents and new additions (in the Document window) to existing documents. That is, when you open a previously created HTML document, these formatting options are not applied to it; to reformat existing HTML documents, use the Apply Source Formatting command. See Formatting the HTML source code in existing documents.

Note: These options apply only to changes you make in the Document window; they do not apply when you edit HTML directly in the HTML Source inspector.

Indent Turns on indentation of all tags marked INDENT in the SourceFormat.txt file. See Editing the HTML source formatting profile.

Use Specifies whether to indent using spaces or tabs.

Table Rows and Columns Automatically indents TR and TD tags to make reading table code easier. The Indent option must be selected for this option to work.

Frames and Framesets Automatically indents FRAME and nested FRAMESET tags to make reading frameset files easier. The Indent option must be selected for this option to work.

Indent Size Determines the size of indents, in spaces if Use is set to spaces, or in tabs if Use is set to tabs. For example, if Use is set to tabs and Indent Size is set to 4, tags will be indented using four tabs.

Tab Size Determines the size of tabs (measured in character spaces).

Note: If Indent Size is not a multiple of Tab Size and Use is set to tabs, tags are indented using a combination of tabs and space characters.

Automatic Wrapping Wraps lines (with a hard return) once they reach the specified column width. (Note that Dreamweaver inserts hard returns only in places where they don't change the appearance of the document in browsers, so some lines may remain longer than the Automatic Wrapping option specifies.) By contrast, the Wrap checkbox in the HTML Source inspector adds a soft return for lines that extend beyond the width of the window.

Line Breaks Specifies the type of remote server (Windows, Macintosh, or UNIX) that hosts your remote site. Choosing the correct type of line break characters ensures that your HTML source code appears correctly when viewed on the remote server. (Note that for FTP, this setting applies only to binary transfer mode; Dreamweaver's ASCII transfer mode ignores this setting. If you download files using ASCII mode, Dreamweaver sets line breaks based on the operating system of your computer; if you upload files using ASCII mode, the line breaks are all set to CR LF.) This setting is also useful when you are working with an external text editor that recognizes only certain kinds of line breaks. For example, use CR LF (Windows) if Notepad is your external editor, and CR (Macintosh) if SimpleText is your external editor.

Case for Tags and Case for Attributes Control the capitalization of tag and attribute names. These options are applied to tags and attributes that you insert or edit in the Document window, but they are not applied to the tags and attributes that you enter directly in the HTML Source inspector, or to the tags and attributes in a document when you open it (unless you also select one or both of the Override Case Of options).

Override Case Of: Tags and Attributes Specify whether to enforce your specified case options at all times, including when you open an existing HTML document. When you select one of these options, all tags or attributes in open documents are immediately converted to the specified case, as are all tags or attributes in each document you open from then on (until you deselect this option again). Tags or attributes you type in the HTML Source inspector and the Quick Tag Editor are also converted to the specified case, as are tags or attributes that you insert using the Object palette. For example, if you want tag names always to be converted to lowercase, specify lowercase in Case for Tags, and then select the Override Case Of: Tags option. Then when you open a document that contains uppercase tag names, Dreamweaver converts them all to lowercase.

Centering Specifies whether elements should be centered using DIV ALIGN="center" or CENTER. Both are part of the HTML 4.0 Transitional specification, but CENTER is supported by a wider range of browsers.